import http from '../utils/httpInstance'

// 查询
export function serviceGetInnerMessage(params?: object) {
  return http.get('/innerMessage', {
    params,
    headers: {
      errAlert: false,
      cancelRequest: false,
    },
  })
}

// 标记已读
export function serviceUpdateInnerMessageHasRead(id: unknown) {
  return http.put(`/innerMessage/${id}`, null, {
    headers: { successAlert: true },
  })
}
